<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@ include file="/public/pathvariable.jsp" %>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache"> 
		<meta http-equiv="Cache-Control" content="no-cache, must-revalidate"> 
		<meta http-equiv="expires" content="0">
		<title>总库信息列表</title>
		<link rel="stylesheet" href="<%=basePath %>css/style.css">
		<link rel="stylesheet" href="<%=basePath %>css/msg.css">
		<link rel="stylesheet" href="<%=basePath %>css/ui_base.css">
		<link rel="stylesheet" href="<%=basePath %>css/f_style.css">
		<script>
			function callSback() {
				$('#Msearch').trigger('click');
			}
			function jsCk(t) {
				if(!/^[1-9][0-9]*$/g.test(t.value)) {
					t.value = "";
					return false;
				}
			}
		</script>
	</head>

	<body ng-app="listApp">
		<!--抬头bar-->
		<jsp:include page="/public/header.jsp" />
		<div class="main w clearfix">
			<div class="class_rg" ng-controller="tableCtrl" style="width:1200px">
				<!--内容区-->
				<div class="path_">
					<a href="<%=basePath %>index.jsp?parId=0">首页</a> >
                    <a href="<%=basePath %>message/index.jsp?parId=1">信息管理</a> >
                    <a href="<%=basePath %>message/messageBaseList.jsp?parId=101">总库信息列表</a> 
				</div>

				<div class="Top_cag">
					<div class="t_bleft fl" style="width:910px;">
						<div class="fl mbine">
							<strong class="th">标题 </strong>
							<input type="text" class="ui_text" ng-model="vm.title">
						</div>
						<div class="fl mbine">
							<strong class="th">内容 </strong>
							<input type="text" class="ui_text" ng-model="vm.content">
						</div>
						<div class="fl mbine">
							<strong class="th">URL</strong>
							<input type="text" class="ui_text" ng-model="vm.url">
						</div>
						<div class="divline v15"></div>
						<div class="fl mbine">
							<strong class="th">首发媒体</strong>
							<input type="text" class="ui_text" ng-model="vm.source">
						</div>
						<div class="fl mbine">
							<strong class="th">发布时间 </strong>
							<input type="text" class="ui_text str_t" id="start_t" readonly="true" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">-
							<input type="text" class="ui_text str_t" id="end_t" readonly="true" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
						</div>
						<div class="fl mbine">
							<strong class="th" style="float:left">渠道</strong>
							<div class="ui_select selectListObj" style="float:left;" >
                                <input type="hidden" id="articleT" class="infoVal" value="" autocomplete="off"/>
                                <span class="ui_s_t" >全部</span>
                                <div class="ui_s_bk" style="display:none; z-index:99;">
                                    <a href="javascript:void(0)" type="">全部</a>
                                    <a href="javascript:void(0)" type="News">新闻</a>
                                    <a href="javascript:void(0)" type="WeiXin">微信</a>
                                    <a href="javascript:void(0)" type="Micro">微博</a>
                                    <a href="javascript:void(0)" type="BBS">论坛</a>
                                </div>
                            </div>
						</div>
					</div>
					<div class="t_bright fr" style="padding-top:10px;width:240px;">
						<a href="javascript:void(0)" class="ui_btn yellow" ng-click="getAjax()" id="Msearch">查询</a>
						<a href="javascript:void(0)" data-url="messageBaseEdit.jsp" class="ui_btn green openF">新增</a>
						<div class="divline v5"></div>
					<!-- 	<a href="javascript:void(0)" class="ui_btn" ng-click="domAjax('delAll')" id="delSelect">删除选中</a> -->
						<a href="javascript:void(0)" class="ui_btn yellow" ng-click="domAjax('list')">导出列表</a>
						<a href="javascript:void(0)" class="ui_btn green" ng-click="domAjax('article')">导出文章</a>
					</div>
				</div>

				<div class="msg_class_table">
					<div class="title">总库信息列表</div>
					<table width="100%" border="0" cellspacing="1" cellpadding="0" class="dtab">
						<tr class="th">
							<th scope="col" width="30">
								<span class="ui_checkbox" id="zcont"></span>
							</th>
							<th scope="col" width="220">标题</th>
							<th scope="col" width="360">内容</th>
							<th scope="col" width="130">首发媒体</th>
							<th scope="col" width="150" class="tc">发布时间</th>
							<!-- <th scope="col" width="100" class="tc">转载/相似</th> -->
							<th scope="col" width="50" class="tc">渠道</th>
							<th scope="col" class="tc">操作</th>
						</tr>
 						<div id="waiting" ng-show='dLoading'>  
						    <img src="<%=basePath %>js/layer/skin/default/xubox_loading0.gif"> 
						</div>
						<tr class="td fuzzy" ng-repeat="key in datas.returnData">
							<td><span class="ui_checkbox" data-id="{{key.id}}"></span></td>
							<td>
								<span class="tips" data-tips="{{key.title}}" ng-bind="key.title" style="width:207px;overflow:hidden; white-space:nowrap;text-overflow:ellipsis;display:block;"></span>
							</td>
							<td>
								<span title="{{key.content}}" ng-bind-html="key.content" style="width:347px;overflow:hidden; white-space:nowrap;text-overflow:ellipsis;display:block;"></span>
							</td>
							<td>
								<span ng-bind="key.source" style="width:117px;overflow:hidden; white-space:nowrap;text-overflow:ellipsis;display:block;"></span>
							</td>
							<td class="tc">
								<span ng-bind="key.publishTime" title="{{key.publishTime}}" class="text_sub2"></span>
							</td>
							<!-- <td ng-bind="key.reprintNumber" class="tc"></td> -->
							<!--渠道内容-->
							<td class="tc"><span ng-bind="key.seedType" title="{{key.seedType}}" class="text_sub3"></span></td>
							<td class="tc">
								<a href="javascript:void(0)" ng-show="key.seedType.indexOf('微博')>-1?false:true" data-url="messageBaseEdit.jsp?id={{key.id}}" class="green openF" ><span>修改</span></a>
								<a href="javascript:void(0)" ng-show="key.seedType.indexOf('微博')>-1?true:false" data-url="messageBaseShow.jsp?id={{key.id}}" class="green srcLayer" ><span>查看</span></a>
								<a href="javascript:void(0)" ng-click="domAjax('del', key.seedType, key.id,key.title)" class="green" id="delBtn">删除</a>
							</td>
						</tr>
						<tr class="pages">
							<td colspan="7">
	                        	<div class="ui_page">
	                            	<span class="ic fl pr20">共 <b ng-bind="datas.totalRecords"></b> 条记录</span>
	                                <span class="sw fl pr20" id="jssum">显示 <a ng-class="$index==0?'cur':''" ng-repeat="key in [10,20,50,100]" ng-bind="key" pagen> </a></span>
	                                <span class="gopg fr">跳转到<input type="button" class="btn" value="go" ng-click="goAjax()"><input type="text" min="1" class="txt" ng-model="keyInt" onkeyup="jsCk(this)"></span>
	                                <div class="pg fr" id="jsgo">
	                                	<a href="javascript:void(0)" data-href="{{prevIndex}}" class="str" pageg ng-show="vm.pageIndex<2?false:true"><</a>
	                                    <a ng-class="key==vm.pageIndex?'cur':''" data-href="{{key}}" ng-repeat="key in pages" ng-bind="key" pageg> </a>
	                                    <a href="javascript:void(0)" data-href="{{nextIndex}}" class="end" pageg ng-show="vm.pageIndex>pages_e-1?false:true">></a>
	                                </div>
	                            </div>
	                        </td>
	                    </tr>
					</table>
				</div>
				<!--内容区-->
			</div>
		</div>
		<script src="<%=basePath %>js/jquery.min.1.8.2.js"></script>
		<script src="<%=basePath %>js/jquery.easing.1.3.js"></script>
		<script src="<%=basePath %>js/jquery.mousewheel.js"></script>
		<script src="<%=basePath %>js/layer/layer.min.js"></script>
		<script src="<%=basePath %>js/angular.min.1.2.5.js"></script>
		<script src="<%=basePath %>js/angular-sanitize.min.js"></script>
		<script src="<%=basePath %>js/laydate/laydate.js"></script>
		<script src="<%=basePath %>js/config.js"></script>
		<script src="<%=basePath %>js/userSession.js"></script>
		<script src="<%=basePath %>message/js/angular.msgBaseList.js"></script>
	</body>
</html>